#! /bin/bash

echo 1 = $1 1>&2
echo 2 = $2 1>&2
echo 3 = $3 1>&2

red=`$1`
blue=`$2`

echo red = $red 1>&2
echo blue = $blue 1>&2

if test $red -gt $blue; then
	echo "Winner: 0"
elif test $red -lt $blue; then
	echo "Winner: 1"
else
    echo "Tie"
fi

echo "Score: $red ($red 0) $blue ($blue 0)"

echo "Here is some trace output." > $3

